#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	int num = 1;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		for (int j = i; j < n; ++j) {
			if (num < 10) {
				printf("0%d", num);
				num++;
			} else {
				cout << num;
				num++;
			}
		}
		cout << endl;
	}
	return 0;
}